# Contributor: kohnish <kohnish@gmx.com>
# Maintainer: kohnish <kohnish@gmx.com>
pkgname=crun
pkgver=0.14.1
pkgrel=0
pkgdesc="A fast and lightweight fully featured OCI runtime and C library for running containers"
url="https://github.com/containers/crun"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
makedepends="libcap-dev libseccomp-dev yajl-dev argp-standalone python3 go-md2man"
subpackages="$pkgname-doc $pkgname-static"
source="https://github.com/containers/crun/releases/download/$pkgver/crun-$pkgver.tar.xz"

build() {
	./configure \
		--prefix=/usr \
		--disable-systemd
	make
}

check() {
	make tests/tests_libcrun_errors.log
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="c40968a71bd73ecf2d13b69c3429b7b5a3fbe002a1d107dbe063b5941f0fe7e51a9e47c19ad0ad58b1a1722c90e3d20399743b66af621694a9293833c00c22ed  crun-0.14.1.tar.xz"
